// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import com.fowo.api.sys.rd2.annotation.RoleData2;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * InventoryList
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "inventory_list", autoResultMap = true)
@Schema(title = "盘点单")
@RoleData2(groupId = 2, funcKey = "InventoryList")
public class InventoryList implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 盘点单号
   */
  @TableField(value = "`inventory_number`")
  @Schema(title = "盘点单号")
  private String inventoryNumber;

  /**
   * 盘点仓库
   */
  @TableField(value = "`warehouse_stock`")
  @JoinField(Warehouse.class)
  @Schema(title = "盘点仓库")
  private Long warehouseStock;

  /**
   * 盘点类型
   */
  @TableField(value = "`inventory_type`")
  @Schema(title = "盘点类型")
  private String inventoryType;

  /**
   * 产品种类
   */
  @TableField(value = "`product_category`")
  @Schema(title = "产品种类")
  private String productCategory;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 盘点状态 (0 - 待盘点_预锁; 1 - 待盘点; 2 - 盘点中; 3 - 已盘点; 4 - 已作废; 5 - 待审批; )
   */
  @TableField(value = "`status`")
  @Schema(title = "盘点状态")
  private String status;

  /**
   * 账面库存
   */
  @TableField(value = "`inventory`")
  @Schema(title = "账面库存")
  private String inventory;

  /**
   * 实盘库存
   */
  @TableField(value = "`firm_inventory`")
  @Schema(title = "实盘库存")
  private String firmInventory;

  /**
   * 盘点人
   */
  @TableField(value = "`count_people`")
  @JoinField(SysUser.class)
  @Schema(title = "盘点人")
  private Long countPeople;

  /**
   * 明盘盲盘 (0 - 明盘; 1 - 盲盘; )
   */
  @TableField(value = "`blind_plate`")
  @Schema(title = "明盘盲盘")
  private String blindPlate;

  /**
   * 零库存参与盘点
   */
  @TableField(value = "`zero_participation`")
  @Schema(title = "零库存参与盘点")
  private Boolean zeroParticipation;

  /**
   * 已盘
   */
  @TableField(value = "`stock_count`")
  @Schema(title = "已盘")
  private String stockCount;

  /**
   * 附件
   */
  @TableField(value = "`file`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "附件")
  private List<SysFile> file;
}
